package com.example.springbootprodb.service.impl;

import com.example.springbootprodb.dao.DeptDao;
import com.example.springbootprodb.entity.Dept;
import com.example.springbootprodb.entity.Result;
import com.example.springbootprodb.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 路老师
 * @date 2025/4/9
 * 无精神，不编程！无乐趣，不编程！
 * “调试：与bug共舞的艺术。”
 */
@Service
public class DeptServiceImpl  implements DeptService {

    @Autowired
    DeptDao deptDao;

    @Override
    public List<Dept> listService() {
        List<Dept> depts = deptDao.selectDeptDao();
        return depts;
    }

    @Override
    public void delService(Integer id) {
            deptDao.delDeptDao(id);
    }
}
